package com.BMS.DAO;

import java.util.Date;
import java.util.List;

import com.BMS.entity.Book;

/**
 * 图书实体类DAO层接口
 * @author lenovo
 *
 */
public interface BookDao {
	
	// add
	public void addBook(Book book, String manager_id, Date takeOn_date);
	// delete
	public void deleteBookById(String book_id);
	// takeOff
	// @param book_id, manager_id, takeOff_date
	public void takeOffBook(String book_id, String manager_id, Date takeOff_date);
	// find
	public Book findBookById(String book_id);
	// 分页查询图书，并按指定字段排序
	public List<Book> findAllBooks(int offset, int length, String orderBy);
	// update
	public void updateBook(Book book);
	
	// 显示分页总页数
	public long getPageCount();
	
}
